﻿@{
    ViewBag.Title = (Model.Id > 0 ? "修改" : "添加") + "导航栏";
    Layout = "~/Areas/Admin/Views/Shared/_RightLayout.cshtml";
}

	<form id="editForm" name="editForm" method="post" action="/Admin/Left_navigation/Save/@if(Model.Id > 0){ Write(Model.Id.ToString()); }?classid=@Request.QueryString["classid"]">
	<div id="panelBar">
		<ul class="toolBar">
			<li><input class="submit" type="submit" value="保存" /></li>
			<li><a class="back" href="javascript:void(0)"><span>返回</span></a></li>
		</ul>
	</div>
	<div id="edit">
		<ul>
            <li> 
				<span class="label">简体中文：</span>
                <span class="required">
                    <input id="zh_cn" name="zh_cn" type="text" value="@Model.zh_cn" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">繁体中文：</span>
                <span class="required">
                    <input id="zh_tw" name="zh_tw" type="text" value="@Model.zh_tw" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">英文：</span>
                <span class="required">
                    <input id="en_us" name="en_us" type="text" value="@Model.en_us" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">Url：</span>
                <span class="required">
                    <input id="Url" name="Url" type="text" value="@Model.Url" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">上级栏目：</span>
                <select name="parent">
                <option value="0">无</option>
               @foreach(var nav in(List<tb_left_navigation>)ViewData["TopNav"])
               {
                   <option value="@nav.Id" @(@nav.Id==@Model.parent?"selected=\"selected\"":"")>@nav.zh_cn</option>
               }
               </select>
			</li> 
            <li> 
				<span class="label">Target：</span>
                <span class="required">
                    <input id="Target" name="Target" type="text" value="@(Model.Target ?? "_self")" required="required" title="请输入" /> 
                </span>
			</li> 
            <li> 
				<span class="label">显示顺序：</span>
                <span class="required">
                    <input id="DisplayOrder" name="DisplayOrder" type="text" value="@Model.DisplayOrder" title="请输入" /> 
                </span>
			</li>
		</ul>
	</div>
	</form>
